package 设计模式.创建型模式.demo04原型模式.demo02官方实现;

/**
 * @author: 王富贵
 * @description: 朱启动类
 * @createTime: 2022/11/07 15:59
 */
public class Application {
    public static void main(String[] args) throws CloneNotSupportedException {
        Cat cat = new Cat("咪咪", "罐头");
        System.out.println(cat.toString());
        Cat cloneCat = (Cat) cat.clone();
        System.out.println(cloneCat.toString());
        System.out.println(cat == cloneCat);
    }
}
